<%-- 
    Document   : N950
    Created on : Oct 24, 2012, 4:07:06 PM
    Author     : Nguyen Hung
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core" %>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html" %>
<%@taglib prefix="rich" uri="http://richfaces.org/rich" %>
<%@taglib prefix="a4j" uri="http://richfaces.org/a4j" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
        <style>
            .message{
                color: red;
                float: left;
                text-align: center;
                margin-top: 16px;
                font-weight:bold; 
            }
            .db1{
                text-align:right;
                width:199px;
                margin-left:-50px;
            }
            .select_cus td label {
                width:64px !important;
            }
        </style>
    </head>
    <body>
        <f:view>
            <a4j:form>
                <f:loadBundle basename="#{environmentSession.localizationSource}" var="locale"/>
                <div style="float:left; width:364px;">
                    <div class="fields_input">
                        <label><h:outputText value="#{locale.department}"/>:</label>&nbsp;
                        <h:inputText value="#{CustomerBean.nv110}" />    
                    </div> 
                    <div class="fields_input">
                        <label><h:outputText value="#{locale.position}"/>:</label>&nbsp;
                        <h:inputText value="#{CustomerBean.nv111}" />    
                    </div> 
                    <div class="fields_input">
                        <label><h:outputText value="#{locale.career}"/>:</label>
                        <h:selectOneMenu styleClass="selectTour" id="cmbfn550" value="#{CustomerBean.fn550}" >  
                            <f:selectItems value="#{CustomerBean.selectedN550Comb}" />     
                             <a4j:support event="onchange" />
                        </h:selectOneMenu>
                    </div> 
                    <%--<div class="fields_input">
                        <label> <h:outputText value="#{locale.customertype}"/>:</label>
                        <h:selectOneRadio value="#{CustomerBean.ni104}" styleClass="select_cus" id="select_cus_ck" style="width:177px;" >
                            <f:selectItem  itemValue="1" itemLabel="#{locale.customer_tt}"/> 
                            <f:selectItem id="tn" itemValue="0" itemLabel="#{locale.customer_tn}"  />
                        </h:selectOneRadio>
                    </div>--%>
                </div>

                <div style="float:left; width:300px;">
                    <fieldset style="border:1px solid #A9ACAD;padding-bottom: 10px;">
                        <legend style="margin-left:5px;">Nhân viên giới thiệu</legend>
                        <div class="fields_input  <h:outputText value='#{CustomerBean.fn850gt}'/>">
                            <label style="width:115px;"><h:outputText value="#{locale.department}"/>:</label>
                            <h:selectOneMenu styleClass="selectTour"  id="cmbNv113" value="#{CustomerBean.fn850gt}"  valueChangeListener="#{CustomerBean.changeCombN850forN900}">
                                <f:selectItems value="#{CustomerBean.selectCombN850}" />
                                <a4j:support event="onchange" reRender="nv112" />
                            </h:selectOneMenu>
                        </div>

                        <div class="fields_input <h:outputText value='#{CustomerBean.nv112}'/>">
                            <label style="width:115px;"><h:outputText value="#{locale.frist_lastname}"/>:</label>&nbsp;
                            <h:selectOneMenu styleClass="selectTour" id="nv112" value="#{CustomerBean.nv112}">
                                <f:selectItems value="#{CustomerBean.selectItemN900}"></f:selectItems>
                            </h:selectOneMenu>
                        </div>
                    </fieldset>



                </div>
                <h:panelGroup id="contact33333333" >
                    <div class="popup-footer">
                        <h:inputHidden id="FFN600" value="#{CustomerBean.FN600}" />
                        <h:inputHidden id="FK100" value="#{CustomerBean.fk100}" />
                        <h:outputText value="#{CustomerBean.message}" id="mesage4" styleClass="mesage"/>
                        <a4j:commandButton  value='#{locale.save}' action="#{CustomerBean.saveCustomer}"
                                            onclick=" showPleaseWait();"
                                            oncomplete="hidePleaseWait();"
                                            styleClass="buttonsave"  reRender="mesage4">
                            <f:param value="abc" name="page"/>
                        </a4j:commandButton>
                        <h:inputHidden value="#{CustomerBean.flag}" id="flag" />
                        <h:inputHidden value="#{CustomerBean.pn100}" id="pn100" />
                        <h:inputHidden value="#{CustomerBean.sendPage}" id="sendPage" />
                        <h:inputHidden value="#{CustomerBean.fn850}" id="fn850" />
                        <h:inputHidden value="#{CustomerBean.nv113}" id="nv113" />
                        <h:inputHidden value="#{CustomerBean.ni105}" id="ni105" />
                      

                        <h:inputHidden value="#{CustomerBean.nn117}" id="nn117" />
                        <h:inputHidden value="#{CustomerBean.nv102}" id="nv102" />
                        <h:inputHidden value="#{CustomerBean.nv103}" id="nv103" />
                        <h:inputHidden value="#{CustomerBean.nd118}" id="nd118" />
                        
                        <h:inputHidden value="#{CustomerBean.nv108}" id="nv108" />



                    </div>
                </h:panelGroup>
            </a4j:form>
        </f:view>


    </body>
</html>
